const router = require('koa-router')();
const blogModel = require('../model/blog');
router.get('/doDelete', async ctx=>{
    var id = ctx.query.id;
    await blogModel.deleteOne({_id:id})
    await ctx.redirect("/")
})
module.exports = router;